package chapter2.No2_2_synchronized同步语句块.eSynchronized代码块之间的同步性;

/**
 * !
 *
 * @author liujian
 * @version 2016/11/11 0011
 */
public class Main {
    public static void main(String[] args) throws InterruptedException {
        ServiceClass sv = new ServiceClass();
        ThreadA a = new ThreadA(sv);
        a.setName("a");
        ThreadB b = new ThreadB(sv);
        b.setName("b");

        a.start();
        b.start();

    }
}
